﻿#ifndef MYDATE_H
#define MYDATE_H

#include <QString>
#include <QStringList>

class MyDate
{
public:
    MyDate();
    static bool IsLeap(int year);
    static bool StringToDate(QString date ,int& year, int& month, int& day) ;
    static int DayInYear(int year, int month, int day);
    static int DaysBetween2Date(QString date1, QString date2)  ;
    static void swap(int a,int b) ;
};

#endif // MYDATE_H
